package com.fluxtah.jordl.examples.twitter.test.steps;

import com.fluxtah.jordl.examples.twitter.GetStatusRequest;
import com.fluxtah.jordl.examples.twitter.GetStatusResponse;
import com.fluxtah.jordl.examples.twitter.TwitterClient;
import com.fluxtah.jordl.lib.HttpRequestHelper;

public class GetStatusSteps {
	private TwitterClient client;
	private String twitterUserId;
	private GetStatusResponse response;

	public void givenATwitterUserId(String twitterUserId){
		this.twitterUserId = twitterUserId;
		this.client = new TwitterClient(new HttpRequestHelper(null));
	}
	
	public void iMakeAGetStatusRequest(){
		GetStatusRequest request = new GetStatusRequest();
		request.setIdParam(twitterUserId);
		this.response = this.client.getStatus(request);
	}
	
	public void responseContainsCurrentStatus(){
		assertNotNull(response.getTweet());
	}
}
